package com.sun.app.process.front.round;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.sun.app.process.BaseProcess;

public class RoundDetailProccess extends BaseProcess{

	@Override
	public HashMap<String, Object> execute(HttpServletRequest request,
			HttpServletResponse response, HashMap<String, Object> model)
			throws Exception {
		// TODO Auto-generated method stub
		Integer RoundId = 0;
		if(request.getAttribute("roundId")!=null){
			RoundId=Integer.valueOf((String)request.getAttribute("roundId"));
		}
		//得到该圈子信息
		Map<String, Object> roundByPK = getServMgr().getRoundService().getRoundByPK(RoundId);
		List<Map<String, Object>> managerPeople = getServMgr().getRoundService().getManagerPeople(RoundId);
		setSuccessView("front/round/publicIn_round");
		model.put("RoundId", RoundId);
		model.put("managerPeople", managerPeople);
		model.put("round", roundByPK);

		return model;
	}
	/*
	 * @old 
	 * #new by Ajax
	 * 
	 * //得到推荐圈子
	 *List<Map<String, Object>> adviceRound = getServMgr().getRoundService().getAdviceRound(request);
	 * //得到参加人
	 *List<Map<String, Object>> peoPle = getServMgr().getRoundService().getPeoPle(request);
	 *得到参加人所参加的圈子
	 *List<Map<String, Object>> peoPleAttend = getServMgr().getRoundService().getPeoPleAttend(request);
	 *得到分享信息
	 *List<Map<String, Object>> information = getServMgr().getRoundService().getInformation(RoundId);
	 *model.put("peoPle", peoPle);
	 *model.put("peoPleAttend", peoPleAttend);
	 *model.put("shareList", information);
	 */

}
